import './assets/main.css'
import './assets/font/iconfont.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'; // 引入路由配置

import ElementPlus from 'element-plus' //引入 element
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app = createApp(App)

app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
}) //

app.config.globalProperties.$wlsf = {
    // 在这里编写你的函数代码
    filiv(data) {
        if (data) {
            let hz = data.split('.')[data.split('.').length - 1];
            if (hz == 'mp4') {
                return 4
            } else {
                return 3
            }
        }
    }

}

app.mount('#app')
